package team.seekers.hula.message.tunnel.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import team.seekers.hula.common.annotation.ApiResponseBody;
import team.seekers.hula.common.entity.PageResult;
import team.seekers.hula.message.tunnel.entity.dto.TunnelPageQueryDTO;
import team.seekers.hula.message.tunnel.entity.vo.TunnelListVO;
import team.seekers.hula.message.tunnel.service.TunnelService;

/**
 * @author ekin
 * @Description GOOD
 * @mood happy
 */
@Controller
@ApiResponseBody
@RequestMapping("/tunnel")
public class TunnelController {

    @Autowired
    private TunnelService tunnelService;

    @GetMapping("/list")
    public PageResult<TunnelListVO> pageTunnel(TunnelPageQueryDTO tunnelPageQueryDTO) {
        return tunnelService.pageTunnel(tunnelPageQueryDTO);
    }
}
